package com.youu.youu.manager.bean;

import java.io.Serializable;
import java.util.List;

import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Transient;

@Table(name="t_permiss")
public class TPermiss implements Serializable {
	/**
	 * @Field @serialVersionUID : TODO(这里用一句话描述这个类的作用)
	 */
	private static final long serialVersionUID = 11231231213L;

	@Id
    private Integer id;

    private Integer pid;

    private String name;

    private String icon;

    private String url;
    @Transient
    private List<TPermiss> child;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getPid() {
        return pid;
    }

    public void setPid(Integer pid) {
        this.pid = pid;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name == null ? null : name.trim();
    }

    public String getIcon() {
        return icon;
    }

    public void setIcon(String icon) {
        this.icon = icon == null ? null : icon.trim();
    }

    public String getUrl() {
        return url;
    }

    public void setUrl(String url) {
        this.url = url == null ? null : url.trim();
    }
    
    public List<TPermiss> getChild() {
		return child;
	}

	public void setChild(List<TPermiss> child) {
		this.child = child;
	}
    

    @Override
	public String toString() {
		return "TPermiss [id=" + id + ", pid=" + pid + ", name=" + name
				+ ", icon=" + icon + ", url=" + url + ", child=" + child + "]";
	}

	
}